Skip to main content

All Questions

17votes
6answers
9kviews

How to implement float hashing with approximate equality

Let's say we have the following Python class (the problem exists in Java just the same with equals and hashCode) class Temperature: def __init__(self, degrees): self.degrees = degrees ...
Marten's user avatar

close